package com.kool.kadmin.system.request;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author luyu
 */
@Data
public class GetUserPageReq {
    private String loginName;
    /**
     * 页码，从1开始
     */
    @NotNull(message = "页码不能为空")
    @Min(value = 0L, message = "页码不能小于0")
    private Integer currentPage;
    @NotNull(message = "每页条数不能为空")
    @Min(value = 0L, message = "条数不能小于0")
    private Integer pageSize;
    /**
     * 状态
     */
    private Integer state;
    /**
     * 用户姓名
     */
    private String userName;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 创建时间起
     */
    private Date createdTimeBegin;
    /**
     * 创建时间止
     */
    private Date createdTimeEnd;
}
